package com.hqyj.service;

import com.hqyj.pojo.Role;
import com.hqyj.pojo.User;
import com.hqyj.pojo.UserRole;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import java.util.HashMap;

/**
 * <p></p>
 *
 * @author : xiong
 * @date : 2020-09-01 15:11
 **/
public interface UserService {
    //登录
    String login(User u, HashMap<String,Object> map);
    //注册
    HashMap<String,Object> insertSelective(User record);


    //新增
    HashMap<String,Object> add(User user);
    //修改
    HashMap<String,Object> update(User user);
    //删除
    HashMap<String,Object> del(Integer id);
    //查询
    HashMap<String,Object> select(User user);

    HashMap<String, Object> fpRole(UserRole userRole);

    HashMap<String, Object> selectRole(User user);

    HashMap<String, Object> xgRole(UserRole userRole);
}
